package cn.edu.xmu.wnw.dao;

import java.util.List;

import org.springframework.context.ApplicationContext;

import cn.edu.xmu.wnw.pojo.Wiki;

public interface WikiDAO {

	public void initDao();

	public void save(Wiki transientInstance);

	public void delete(Wiki persistentInstance);

	public Wiki findById(java.lang.Integer id);

	public List findByExample(Wiki instance);

	public List findByProperty(String propertyName, Object value);

	public List findByTitle(Object title);

	public List findByContent(Object content);

	public List findByHit(Object hit);

	public List findByState(Object state);

	public List findAll();

	public Wiki merge(Wiki detachedInstance);

	public void attachDirty(Wiki instance);

	public void attachClean(Wiki instance);

	public WikiDAO getFromApplicationContext(ApplicationContext ctx);
}